<template>
  <div class="person">
    <h2>Person组件</h2>
    <h3>姓名：{{ name }}</h3>
    <h3>年龄：{{ age }}</h3>
    <h3>座驾：{{ car }}</h3>
  </div>
</template>

<script>
  // 此处写脚本
  export default {
    name:'Person',
    data() {
      return {
        x:100
      }
    },
    props:['name','age','car'],
  }
</script>

<style scoped>
  /* 此处写样式 */
  .person {
    background-color: skyblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>